package org.elanfox.cloud.common.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.elanfox.cloud.common.enums.base.CodeDescCommonEnum;

/**
 * @author allan
 * @date 2019-08-16
 */
@AllArgsConstructor
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ResultTypeEnum implements CodeDescCommonEnum {
    SUCCESS(0, "成功"),
    EXCEPTION(1, "异常"),
    ERROR(2, "系统错误"),
    FAILED(3, "失败");

    private Integer code;
    private String desc;
}
